package com.gjh.study.basic.thread;

import java.util.concurrent.Callable;

/**
 * @author guangjh
 * @version 1.0
 * @date 2020/7/20 7:59
 */
public class CallableImpl implements Callable<Integer> {
    private static Integer value = 0;
    @Override
    public Integer call() throws Exception {
        System.out.println("执行 call 方法前：value = " + value);
        value = value.intValue() + 1;
        System.out.println("执行 call 方法后：value = " + value);
        return value;
    }
}
